import request from '@/utils/request';
import type { AxiosResponse } from 'axios';
const baseModule: string = '/dept';

/**
 * 查询组织架构树
 * @param name 参数
 * @returns {Promise<AxiosResponse<T>>}
 */
export const getDeptTreeList = (): Promise<AxiosResponse<API.IResult>> => {
  return request({
    url: `${baseModule}/deptTreeList`,
    method: 'post',
  });
};
